import QtQuick 2.0

Rectangle{
    id: rootRect

    property color backColor: "grey"
    property string fileName: ""
    signal imageChanged(string prevImage, string currImage)

    width: 400; height: 400
    anchors.fill: parent
    color: backColor
    border.color: "white"
    Image {
        id: image
        anchors.centerIn: parent
        width: parent.width-3; height: parent.height-3
        source: fileName
    }

//    MouseArea{
//        anchors.fill: parent
//        onEntered: border.width = 3;
//        onExited: border.width = 1;
//    }
}
